package io.renren.modules.gengyun.service.impl;


import io.renren.modules.gengyun.dao.PlanTimeIndexDao;
import io.renren.modules.gengyun.entity.PlanTimeIndexEntity;
import io.renren.modules.gengyun.service.PlanTimeIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
public class PlanTimeIndexServiceImpl implements PlanTimeIndexService {
    @Autowired
    private PlanTimeIndexDao time_indexDao;

    @Override
    public PlanTimeIndexEntity getTime_index(Long id) {
        return time_indexDao.getTime_index(id);
    }

    @Override
    public int add(PlanTimeIndexEntity time_index) {
        return time_indexDao.add(time_index);
    }

    @Override
    public int update(PlanTimeIndexEntity time_index) {
        return time_indexDao.update(time_index);
    }

    @Override
    public int deleteById(Long id) {
        return time_indexDao.deleteById(id);
    }

    @Override
    public List<Map<String, Object>> fandAllList() {
        return time_indexDao.fandAllList();
    }

    @Override
    public int findPeriod_id(Date time) {
        return time_indexDao.findPeriod_id(time);
    }
}
